<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>用于禁止实例化的构造函数</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.closure.html">Closure</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="closure.bind.html">Closure::bind</a></div>
 <div class="up"><a href="class.closure.html">Closure</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="closure.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Closure::__construct</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0)</p><p class="refpurpose"><span class="refname">Closure::__construct</span> &mdash; <span class="dc-title">用于禁止实例化的构造函数</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-closure.construct-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>Closure::__construct</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">
   这个方法仅用于禁止实例化一个
    <a href="class.closure.html" class="classname">Closure</a> 类的对象。这个类的对象的创建方法写在
    <a href="functions.anonymous.html" class="link">匿名函数</a> 页。
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-closure.construct-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-closure.construct-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   没有返回值，它只是简单的触发一个错误
   （类型是 <strong><code>E_RECOVERABLE_ERROR</code></strong>）。
  </p>
 </div>



 <div class="refsect1 seealso" id="refsect1-closure.construct-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li class="member">
    <a href="functions.anonymous.html" class="link">匿名函数</a>
   </li>
  </ul>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.closure.html">Closure</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="closure.bind.html">Closure::bind</a></div>
 <div class="up"><a href="class.closure.html">Closure</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
